import { computed } from 'vue';
// 钩子函数、小工具
import { useQuasar } from '@teld/q-components';

export default function () {
  const $q = useQuasar();
  console.log('===== $q', $q);
  // 是否设计时
  const inDesign = !!window['fas']?.inDesign;

  // 浏览宽度低于768px
  const isMobile = computed(() => $q?.screen.xs || $q?.platform?.is?.mobile);

  return {
    inDesign,
    isMobile,
  };
}
